// ActionScript file
/*
* 全局控制的接口
*/
import mx.events.CloseEvent;
//跳转到订票菜单
private function backToIndex():void
{
	currentState="index";
}

//跳转到主菜单
private function backToNavi():void
{
	currentState="navi";
}

//跳转到管理菜单选择界面
private function backToAdmin():void
{
	currentState="admin";
}

//跳转到航班管理界面
private function backToFlight():void
{
	currentState="flight";
}

private function backToFlight2():void
{
	currentState="flight2";
}

private function backToFlight3():void
{
	currentState="flight3";
}

//跳转到退票单
private function backToUnsub():void
{
	currentState="unSub";
}

//推出登录
private function backToBase():void
{
	currentState="";
}

//响应订票成功，退票成功事件			
private function alertHandler( evt:CloseEvent ):void
{
	if( evt.detail == Alert.YES )
		currentState="navi";
}